﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="OnsiteEntruckingEdit.aspx.cs" Inherits="NetDon.OA.Portal.Shunting.OnsiteEntruckingEdit" %>

<%@ Import Namespace="NetDon.OA.Interface" %>
<%@ Import Namespace="NetDon.Utilities" %>
<%@ Register Src="../Controls/RequiredMark.ascx" TagName="RequiredMark" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">

        $(document).ready(function () {
            var dialog;
            if (window.top == window) {
                dialog = window;
            } else {

                dialog = window.top.Page.Dialog.find(function (item) {
                    return item._contentFrame.contentWindow == window;
                });

            }
            var fieldId = $get('<%=this.fieldIds.ClientID %>');


            var reloadButton = $get('<%=btnReLoadIds.ClientID %>');
            if (dialog && !reloadButton.disabled) {

                $text(fieldId, dialog._context.dialogArguments.Ids);
                reloadButton.click();


            }


        });

        function IsGoodsJilted(el) {
            $('#<%=this.spanIsGoodsJilted.ClientID %>').text($(el).val().length > 0 ? "是" : "否");
        }
        function checkActualEntruckingBoxAmount(object) {
            var ordreQuantity = $('#<%=this.fieldOrderQuantity.ClientID %>').val();
            var orderActualEntruckingBoxAmount = ($(object).val());
            if (orderActualEntruckingBoxAmount != "" && ordreQuantity != "") {
                if (parseFloat(orderActualEntruckingBoxAmount) > parseFloat(ordreQuantity)) {
                    $alert("实际装车箱数不可以大于下车单数。");
                    $(object).val('');
                    try {
                        object.focus();
                    } catch (e) { }
                    return;
                }
            }
        }

        function calculateDelayedDays(object) {
            var start = $("#<%=this.txtPlannedShippingDate.ClientID %>").text();
            var end = $("#<%=this.txtActualShippingDate.ClientID %>").val();
            var re = /^(\d{4})\S(\d{1,2})\S(\d{1,2})$/;
            var startDate, endDate;
            if (re.test(start)) {
                startDate = new Date(RegExp.$1, RegExp.$2 - 1, RegExp.$3);

            }
            if (re.test(end)) {
                endDate = new Date(RegExp.$1, RegExp.$2 - 1, RegExp.$3);

            }
            if (startDate && endDate) {
                if (endDate < startDate) {
                    //                    $alert("实发货日期不可以小于应发货日期");
                    //                    object.focus();
                    return;
                } else {
                    var dayInterval = (Math.floor((endDate - startDate) / (1000 * 60 * 60 * 24)));

                    $("#<%=this.txtDelayedDays.ClientID %>").text(dayInterval.toString());
                }
            }

        }

        function onChangeQuantity(obj, foucsControlId, message) {

            var actual = $(obj).val();

            var plan = $('#' + foucsControlId).text();

            if (plan && actual) {

                if (parseFloat(actual) > parseFloat(plan)) {
                    $alert(message);
                    $(obj).val('');
                    try {
                        obj.focus();
                    } catch (e) {
                    }
                    return;

                }
            }

        }
        
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="panelBasic" runat="server" DefaultButton="btnSave">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <NetDon:FormPanel ID="FormPanelBasicInfo" runat="server" CaptionAlign="NotSet" RepeatColumns="2"
                        SkinID="ProductView">
                        <Items>
                            <NetDon:FormItem FullRow="True" HeaderVisible="False">
                                <ContentTemplate>
                                    <asp:Literal ID="Literal3" runat="server" Text="基本信息"></asp:Literal>
                                </ContentTemplate>
                                <ContentStyle ForeColor="#037CC6" Font-Bold="true"></ContentStyle>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="订单编号">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="txtOrderCode" Text='<%# Eval("OrderCode") %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="回单状态">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="txtOrderStatus" Text='<%# EnumUtilities.GetDescription((OrderStatus)Enum.Parse(typeof(OrderStatus), Eval("OrderStatus").ToString())) %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="客户">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="Label1" Text='<%#GetCustomerName(Eval("CustomerId")) %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="承运货物">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="Label2" Text='<%#GetDictionaryItemName(Eval("GoodsShippedTypeId")) %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="线路分类">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="Label3" Text='<%#GetDictionaryItemName(Eval("RouteTypeId")) %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="出单日期">
                                <ContentTemplate>
                                    <asp:Label ID="Label44" Text='<%#Eval("ReceivingOrderDate") != null ? ((DateTime)Eval("ReceivingOrderDate")).ToString("yyyy-MM-dd") : ""%>'
                                        runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="运输计划号">
                                <ContentTemplate>
                                    <asp:Label ID="Label344" Text='<%#Bind("TransportationPlanCode") %>' runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="结算方式">
                                <ContentTemplate>
                                    <asp:Label runat="server" ID="Label4" Text='<%#EnumUtilities.GetDescription(EnumUtilities.Parse<CheckoutType>(Eval("CheckoutType").ToString())) %>'>	</asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="下单车数">
                                <ContentTemplate>
                                    <asp:Label ID="Label5" Text='<%#Eval("OrderVehicleNumber") %>' runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="下单数量">
                                <ContentTemplate>
                                    <asp:Label ID="Label6" Text='<%#Convert.ToDecimal(Eval("OrderQuantity")).ToString("#,###.00")%>'   runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="下单材积（方）">
                                <ContentTemplate>
                                    <asp:Label ID="Label7" Text='<%#Convert.ToDecimal(Eval("OrderVolumn")).ToString("#,###.000")%>'
                                        runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="下单重量">
                                <ContentTemplate>
                                    <asp:Label ID="Label8" Text='<%#Convert.ToDecimal(Eval("OrderWeight")).ToString("#,###.000")%>'
                                        runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="送货城市">
                                <ContentTemplate>
                                    <%#Server.HtmlEncode(GetCityName(Eval("Id")))%>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="成本单价">
                                <ContentTemplate>
                                    <asp:Label ID="txtUnitCost" Style="text-align: right" Text='<%#Convert.ToDecimal(Eval("UnitCost")).ToString("#,###.0000")%>'
                                        runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <%--                <NetDon:FormItem HeaderText="送货地点">
                                <ContentTemplate>
                                    <asp:Label ID="Label9" Text='<%#Eval("DeliveryAddress") %>' runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>--%>
                        </Items>
                    </NetDon:FormPanel>
                </td>
            </tr>
            <tr>
                <td>
                    <NetDon:FormPanel ID="FormPanelIssuringOrderInfo" runat="server" CaptionAlign="NotSet"
                        RepeatColumns="2">
                        <Items>
                            <NetDon:FormItem FullRow="True" HeaderVisible="False">
                                <ContentTemplate>
                                    <asp:Literal ID="Literal1" runat="server" Text="现场装车"></asp:Literal>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="应发货日期">
                                <ContentTemplate>
                                    <asp:Label ID="txtPlannedShippingDate" Text='<%#Eval("PlannedShippingDate") != null ? ((DateTime)Eval("PlannedShippingDate")).ToString("yyyy-MM-dd") : ""%>'
                                        runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="实发货日期">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtActualShippingDate" runat="server" Text='<%#Eval("ActualShippingDate") != null ? ((DateTime)Eval("ActualShippingDate")).ToString("yyyy-MM-dd") : ""%>'></asp:TextBox>
                                    <asp:CalendarExtender ID="txtActualShippingDate_CalendarExtender1" runat="server"
                                        Animated="False" Enabled="True" FirstDayOfWeek="Sunday" TargetControlID="txtActualShippingDate"
                                        Format="yyyy-MM-dd">
                                    </asp:CalendarExtender>
                                    <asp:CustomValidator ID="CustomValidator1" ClientValidationFunction="validateDateText"
                                        runat="server" ErrorMessage="应发货日期无效." Display="None" ControlToValidate="txtActualShippingDate"
                                        OnServerValidate="DateValidator_ServerValidate"></asp:CustomValidator>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="迟发货天数" ColumnSpan="2">
                                <ContentTemplate>
                                    <asp:Label ID="txtDelayedDays" Text='<%#Bind("DelayedDays") %>' Style="text-align: right"
                                        runat="server" MaxLength="9"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="迟发原因和解决措施" ColumnSpan="2">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtDelayedReasons" runat="server" Text='<%#Bind("DelayedReasons") %>'
                                        Width="450px" Height="80px" TextMode="MultiLine"></asp:TextBox>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="现场人员">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlOnsiteOperator" DataSourceID="ddsOnsiteOperator" AppendDataBoundItems="True"
                                        runat="server" DataTextField="Name" DataValueField="Value">
                                    </asp:DropDownList>
                                    <NetDon:DictionaryDataSource ID="ddsOnsiteOperator" runat="server" CategoryName="现场操作人"
                                        EmptyItemType="Select">
                                    </NetDon:DictionaryDataSource>
                                    <uc1:RequiredMark ID="RequiredMark2" runat="server" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlOnsiteOperator"
                                        Display="None" ErrorMessage="请选择现场人员" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="货物起运时间">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtStartShippmentDate" Text='<%#Eval("StartShippmentDate") != null ? ((DateTime)Eval("StartShippmentDate")).ToString("yyyy-MM-dd") : ""%>'
                                        Width="120px" runat="server"></asp:TextBox>
                                    <asp:TextBox ID="txtStartShippmentDateHour" runat="server" Width="20px" MaxLength="2"></asp:TextBox>
                                    <uc1:RequiredMark ID="RequiredMark5" runat="server" />
                                    <NetDon:NumericEditExtender ID="NumericEditExtender2" runat="server" MaxValue="24"
                                        MinValue="0" TargetControlID="txtStartShippmentDateHour" DataMode="Integer">
                                    </NetDon:NumericEditExtender>
                                    <asp:CalendarExtender ID="txtStartShippmentDateCalendarExtender2" runat="server"
                                        Animated="False" Enabled="True" FirstDayOfWeek="Sunday" TargetControlID="txtStartShippmentDate"
                                        Format="yyyy-MM-dd">
                                    </asp:CalendarExtender>
                                    <asp:CustomValidator ID="txtDriverOnboardDateCustomValidator2" ClientValidationFunction="validateDateText"
                                        runat="server" ErrorMessage="货物起运时间无效." Display="None" ControlToValidate="txtStartShippmentDate"
                                        OnServerValidate="DateValidator_ServerValidate"></asp:CustomValidator>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtStartShippmentDate"
                                        Display="None" ErrorMessage="请输入货物起运时间" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <%--   <NetDon:FormItem HeaderText="实际装车数量">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlActualEntruckingUnit" Width="60px" runat="server">
                                        <asp:ListItem Text="立方数" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="吨数" Value="1"></asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:TextBox ID="txtActualEntruckingAmount" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingAmount")).ToString("#,###.00")%>'
                                        Width="80px" runat="server"></asp:TextBox>
                                    <uc1:RequiredMark ID="RequiredMark3" runat="server" />
                                    <NetDon:NumericEditExtender ID="NumericEditExtender1" runat="server" TargetControlID="txtActualEntruckingAmount"
                                        DataMode="Double">
                                    </NetDon:NumericEditExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtActualEntruckingAmount"
                                        Display="None" ErrorMessage="请输入实际装车数量" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </ContentTemplate>
                            </NetDon:FormItem>--%>
                            <NetDon:FormItem HeaderText="实际装车箱数">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtActualEntruckingBoxAmount" Text='<%# Bind("ActualEntruckingBoxAmount") %>'
                                        Width="120px" runat="server"></asp:TextBox>
                                    <uc1:RequiredMark ID="RequiredMark1" runat="server" />
                                    <NetDon:NumericEditExtender ID="NumericEditExtender3" runat="server" TargetControlID="txtActualEntruckingBoxAmount"
                                        DataMode="Integer">
                                    </NetDon:NumericEditExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtActualEntruckingBoxAmount"
                                        Display="None" ErrorMessage="请输入实际装车箱数" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="剩余箱数" ColumnSpan="2">
                                <ContentTemplate>
                                    <asp:Label ID="txtGoodsLeftBoxAmount" Text='<%#Bind("GoodsLeftBoxAmount") %>' runat="server"></asp:Label>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem FullRow="True" HeaderText="实际装车信息">
                                <ContentTemplate>
                                    <NetDon:FormPanel ID="FormPanelIssuingOrderDelivery" runat="server" CaptionAlign="NotSet">
                                        <Items>
                                            <NetDon:FormItem HeaderText="" Key="issuingOrderDelivery">
                                                <ContentTemplate>
                                                    <NetDon:GridView ID="gridOrderDetailList" runat="server" AutoGenerateColumns="False"
                                                        OnRowDataBound="gridIssuingOrderDelivery_RowDataBound" DataKeyNames="Id" CssClass="IncrementalTable"
                                                        Width="300px">
                                                        <Columns>
                                                            <NetDon:IndexField HeaderText="序号">
                                                            </NetDon:IndexField>
                                                            <NetDon:TemplateField HeaderText="交货单号">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="txtDeliveryOrderCode" Text='<%#Eval("DeliveryOrderCode")%>' MaxLength="50"
                                                                        Width="90px" runat="server"></asp:Label>
                                                                    <br />
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="送货城市">
                                                                <ItemTemplate>
                                                                    <%#Server.HtmlEncode(GetSingleCityName(Eval("DeliveryCity")))%>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="下单数量">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="txtOrderQuantity" Text='<%#Convert.ToDecimal(Eval("OrderQuantity")).ToString("#,###.00")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:Label>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="实际<Br/>下单数量">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="txtActualEntruckingOrderQuantity" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderQuantity")).ToString("#,###.00")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:TextBox>
                                                                    <NetDon:NumericEditExtender ID="NumericEditExtender14" runat="server" MaxValue="100000"
                                                                        TargetControlID="txtActualEntruckingOrderQuantity" DataMode="Double">
                                                                    </NetDon:NumericEditExtender>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="下单材积<Br/>（方）">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="txtOrderVolumn" Text='<%#Convert.ToDecimal(Eval("OrderVolumn")).ToString("#,###.000")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:Label>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="实际<Br/>下单材积<Br/>（方）">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="txtActualEntruckingOrderVolumn" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderVolumn")).ToString("#,###.000")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:TextBox>
                                                                    <NetDon:NumericEditExtender ID="NumericEditExtender1" runat="server" TargetControlID="txtActualEntruckingOrderVolumn"
                                                                        DataMode="Double">
                                                                    </NetDon:NumericEditExtender>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="下单重量<Br/>（吨）">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="txtOrderWeight" Text='<%#Convert.ToDecimal(Eval("OrderWeight")).ToString("#,###.000")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:Label>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                            <NetDon:TemplateField HeaderText="实际<Br/>下单重量<Br/>（吨）">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="txtActualEntruckingOrderWeight" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderWeight")).ToString("#,###.000")%>'
                                                                        runat="server" SkinID="Text50" Style="text-align: right"></asp:TextBox>
                                                                    <NetDon:NumericEditExtender ID="NumericEditExtender211" runat="server" TargetControlID="txtActualEntruckingOrderWeight"
                                                                        DataMode="Double">
                                                                    </NetDon:NumericEditExtender>
                                                                </ItemTemplate>
                                                            </NetDon:TemplateField>
                                                        </Columns>
                                                    </NetDon:GridView>
                                                </ContentTemplate>
                                            </NetDon:FormItem>
                                        </Items>
                                    </NetDon:FormPanel>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="是否甩货" ColumnSpan="2">
                                <ContentTemplate>
                                    <span id="spanIsGoodsJilted" runat="server">
                                        <%#!MiscUtilities.IsNullOrEmpty(Eval("IsGoodsJilted")) && Convert.ToBoolean(Eval("IsGoodsJilted")) ? "是" : "否"%>
                                    </span>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="甩货原因" ColumnSpan="2">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtGoodsJiltedReasons" Text='<%#Bind("GoodsJiltedReasons") %>' runat="server"
                                        Style="color: #FF6600" Width="450px" TextMode="MultiLine" Height="100px"></asp:TextBox>
                                </ContentTemplate>
                            </NetDon:FormItem>
                            <NetDon:FormItem HeaderText="备注" ColumnSpan="2">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtOnsiteEntruckingComments" runat="server" Text='<%#Bind("OnsiteEntruckingComments") %>'
                                        Width="450px" TextMode="MultiLine" Height="100px"></asp:TextBox>
                                </ContentTemplate>
                            </NetDon:FormItem>
                        </Items>
                    </NetDon:FormPanel>
                </td>
            </tr>
            <tr>
                <td style="padding-left: 150px">
                    <asp:Button ID="btnSave" runat="server" SkinID="Button80" Text="保存" OnClick="btnSave_Click" />
                    <asp:Button ID="btnCancel" runat="server" SkinID="Button80" Text="取消" CausesValidation="false" />
                    <NetDon:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true"
                        ShowSummary="false" />
                </td>
            </tr>
            <tr>
                <td style="padding-left: 150px; padding-top: 4px;">
                    <asp:Button ID="btnSaveAndNext" runat="server" SkinID="Button120" OnClick="btnSaveAndNext_Click"
                        Text="保存并编辑下一个" />
                    <asp:Button ID="btnNext" runat="server" SkinID="Button80" Text="下一个" OnClick="btnNext_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnPrevious" runat="server" SkinID="Button80" Text="上一个" OnClick="btnPrevious_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnSaveAndPrevious" runat="server" SkinID="Button120" OnClick="btnSaveAndPrevious_Click"
                        Text="保存并编辑上一个" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:HiddenField ID="fieldIds" runat="server" />
    <asp:HiddenField ID="fieldOrderQuantity" runat="server" />
    <asp:Button ID="btnReLoadIds" runat="server" SkinID="Hidden" OnClick="btnReLoadIds_Click"
        CausesValidation="false" />
</asp:Content>
